<?php echo form_button(array('id'=>'add-countrysetting', 'onClick'=>'openCountryPopup()','name'=>'add', 'class'=>'btn blue', 'value'=>lang('escort_countrysetting_add_countrysetting'), 'content'=>lang('escort_countrysetting_add_countrysetting')))?>
<section class="item">
<?php
	if($countrysettingList){
?>
		<table class="table-list">
			<tr>
				<th><?php echo lang('escort_countrysetting_id')?></th>
				<th><span><?php echo lang('escort_countrysetting_name')?></span></th>
				<th><span><?php echo lang('escort_countrysetting_tax')?></span></th>
				<th><span><?php echo lang('escort_countrysetting_payment_gateways')?></span></th>
				<th class="actions"><?php echo lang('escort_countrysetting_actions')?></th>
			</tr>
			
	<?php
		foreach ($countrysettingList as $countrysetting){ 
	?>
			<tr>
				<td>
					<?php echo $countrysetting->id ?>
				</td>
				<td class="collapse">
					<?php echo $countrysetting->country_name ?>
				</td>
				<td class="collapse">
					<?php echo $countrysetting->tax ?>
				</td>
				<td class="collapse">
				<?php
					if($countrysetting->payment_gateway_ids){
						$ci = &get_instance();
						echo $ci->payment_gateway_entity->getPaymentGatewayNameByIds($countrysetting->payment_gateway_ids);
					}else{
						echo '';
					}
				?>
				</td>
				<td class="actions">
				<a class="button edit" onclick="return editCountrysetting('<?php echo $countrysetting->id ?>')" href="#"><?php echo lang('escort_countrysetting_edit_countrysetting')?></a>
				<a class="button delete" onclick="return deleteCountrysetting('<?php echo $countrysetting->id ?>', '<?php echo lang('escort_countrysetting_delete_confirm')?>')" href="#"><?php echo lang('escort_countrysetting_delete_countrysetting')?></a>
				</td>
			</tr>
	<?php
		}
	?>
		</table>
<?php
	}else{ 
?>
	<p>
		<?php echo lang('escort_countrysetting_no_countrysetting')?>
	</p>
<?php
	} 
?>
</section>

<div id="basic-modal-content-countrysetting">
	<div class="popup-body countrysetting-popup">
		<section class="title">
			<h4><?php echo lang('escort_countrysetting_add_countrysetting')?></h4>
		</section>
		<form id="add-countrysetting-form" action="">
			<section class="item">
				<div class="form_inputs">
					<fieldset>
						<ul>
							<li class="odd">
								<label for="first_name"><?php echo lang('escort_countrysetting_name')?><span>*</span></label>
								<div class="input">
									<!--<input class="required" type="text" id="countrysetting_code" value="" name="countrysetting_code"> -->
									<?php echo form_dropdown('country_id', $countrysettingCountryList, '', 'id="country_id"')?>
								</div>
							</li>
							<li class="even">
								<label for="first_name"><?php echo lang('escort_countrysetting_tax')?><span>*</span></label>
								<div class="input">
									<input type="hidden" value="" name="countrysetting_id" id="countrysetting_id"/>
									<input class="required" type="text" id="countrysetting_tax" value="" name="countrysetting_tax">
								</div>
							</li>
							<li class="even">
								<label for="first_name"><?php echo lang('escort_countrysetting_payment_gateways')?><span>*</span></label>
								<div class="input">
									<?php echo form_multi_checkbox('payment_gateway', $paymentGateWayList)?>
								</div>
							</li>
							
						</ul>
					</fieldset>
				</div>
				<div>
					<?php echo form_button(array('id'=>'save-countrysetting', 'onClick'=>'saveCountrysetting()','name'=>'add', 'class'=>'btn blue', 'value'=>lang('escort_countrysetting_save'), 'content'=>lang('escort_countrysetting_save')))?>
					<?php echo form_button(array('id'=>'cancel-countrysetting', 'name'=>'add', 'class'=>'btn blue modalCloseImg simplemodal-close', 'value'=>lang('escort_countrysetting_cancel'), 'content'=>lang('escort_countrysetting_cancel')))?>
				</div>
			</section>
		</form>
	</div>
</div>